package org.generic.component;

public class Resource {
	private int resId;
	private byte pageId;
	private byte [] data;
	
	public Resource (int resId) {
		this.resId = resId;
		this.pageId = -1;
		this.data = null;
	}
	
	public Resource (int resId, byte pageId) {
		this.resId = resId;
		this.pageId = pageId;
		this.data = null;
	}
	
	public Resource (int resId, byte pageId, byte [] data) {
		this.resId = resId;
		this.pageId = pageId;
		this.data = data;
	}
	
	public void setData(byte [] data) {
		this.data = data;
	}
	public byte [] getData() {
		return data;
	}
	public void setResId(int resId) {
		this.resId = resId;
	}
	public int getResId() {
		return resId;
	}

	public void setPageId(byte pageId) {
		this.pageId = pageId;
	}

	public byte getPageId() {
		return pageId;
	}
}